﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity;

using Happy.Cms.Domain.Categories;

namespace Happy.Cms.Domain.EntityFramework.Categories
{
    public sealed class CategoryConfiguration : EntityTypeConfiguration<Category>
    {
        public CategoryConfiguration()
        {
            this.HasKey(x => x.Id);
            this.Property(x => x.OptimisticKey).IsRowVersion();
        }
    }
}
